package com.appspot.zarm.gomoku;

import com.appspot.zarm.game.Player;
import com.appspot.zarm.game.PlayerType;

public class GomokuGameFacade {

	private Player player;
	private GomokuBoard board;
	
	public GomokuGameFacade(Player player, GomokuBoard board){
		this.player = player;
		this.board = board;
	}
	
	public void doTurn(Coord position) {
		Cell cell = board.getCell(position);
		if (cell.isEmpty()){
			cell.setPlayer(player);
			if (player.getPlayerType() == PlayerType.ONE){
				cell.setCellState(CellState.CROSS);
			} else {
				cell.setCellState(CellState.ZERO);
			}
		}
	}

	public void finish() {
	}

	public void start() {
	}
	

}
